﻿<Window x:Class="Beaker.OpenCube.Render.Test.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
		xmlns:sys="clr-namespace:System;assembly=mscorlib"
        Title="MainWindow"
		DataContext="{StaticResource MainViewModel}"
>
	<DockPanel LastChildFill="True">
		<Grid DockPanel.Dock="Bottom">
			<Border Padding="8" BorderThickness="0,1,0,0" BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
				<StackPanel Orientation="Horizontal">
					<Button Command="{Binding StartCommand}" Padding="8,4" Margin="0,0,8,0">Start</Button>
					<Label>Sampling:</Label>
					<ComboBox ItemsSource="{Binding Samplers}" SelectedItem="{Binding SelectedSampler}" DisplayMemberPath="Key" />
					<Label>Samples:</Label>
					<Slider MinWidth="200" Minimum="1" Maximum="512"  Ticks="1,2,4,8,16,32,64,128,256,512" TickPlacement="BottomRight" Value="{Binding SamplesPerPixel}" VerticalAlignment="Center" />
					<Label Content="{Binding SamplesPerPixel}"></Label>
					<Label>Ray  depth:</Label>
					<Slider MinWidth="200" IsSnapToTickEnabled="True" Minimum="1" Maximum="500" TickFrequency="5" TickPlacement="BottomRight" Value="{Binding RayDepth}" VerticalAlignment="Center" />
					<Label Content="{Binding RayDepth}"></Label>
				</StackPanel>
			</Border>
		</Grid>
		<Image Source="{Binding ImageSource}" />
	</DockPanel>
</Window>
